package com.amoby.main.mapper;

import java.util.List;
import java.util.Map;

import com.amoby.base.common.Pager;
import com.amoby.main.entity.Channel;

public interface ChannelMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Channel record);

    int insertSelective(Channel record);

    Channel selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Channel record);

    int updateByPrimaryKey(Channel record);

    Channel getChannelByUserId(Integer userId); //根据userId查询渠道

    List<?> selectCountByPager(Pager pager); //分页查询渠道

    int checkUserNameById(Map<String, Object> map); //渠道唯一性验证

    Channel getChannelByChannelName(String channelName); //根据渠道名称查询

    int checkChannelName(Map<String, Object> map); //渠道名称唯一性验证
}